<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Status extends Model
{
    //

    protected $fillable = ['content'];

    public function user()
    {
        return $this->belongsTo(User::class);
        //指明一对多关系 一个用户可以拥有多条状态
    }
}
